﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Netkk.Models.HomeModel>" %>

<%@ Import Namespace="Netkk.Common" %>
<%@ Import Namespace="Netkk.Library" %>
<%@ Import Namespace="Netkk.Common.Models" %>
<asp:Content ID="indexHead" ContentPlaceHolderID="head" runat="server">
    <title>.NET-Stammtisch Konstanz-Kreuzlingen</title>
</asp:Content>
<asp:Content ID="indexContent" ContentPlaceHolderID="MainContent" runat="server">
    <h1>
        .NET-Stammtisch Konstanz-Kreuzlingen</h1>
    <h2>
        Die nächste Veranstaltung</h2>
    <% Html.RenderPartial("AppointmentOverview", Model.Appointment); %>
    <h2>
        Die neuesten News</h2>
    <%Html.RenderPartial("NewsOverview", Model.News);%>
    <p>
        &nbsp;</p>
    <div id="twitterBox">
        <img src="<%= Url.Content("~/images") %>/twitter.png" align="right" alt="Twitter" />
        <h2>
            <a href="http://twitter.com/dotnetkk" title="Besuche dotnetkk auf twitter.com">dotnetkk@twitter</a></h2>
        <%
            foreach (string formattedTweet in Model.Tweets)
            {
        %>
        <p>
            <%= formattedTweet %></p>
        <%}%>
    </div>
</asp:Content>
